import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  BaseEntity,
  Index,
} from 'typeorm';
@Entity('file')
export default class FileEntity extends BaseEntity {
  @PrimaryGeneratedColumn('increment', { type: 'bigint', comment: 'id编号' })
  id: number;

  @Column({ comment: '文件路径' })
  path: string;

  @Column({ comment: 'ios plist文件路径', nullable: true })
  plistPath: string;

  @Column({ comment: '文件大小' })
  size: number;

  @Column({ length: 225, nullable: true, comment: '文件类型' })
  type: string;
}
